package com.ogawa.projectcommon.dao

import androidx.room.*
import com.ogawa.projectcommon.bean.MusicBean

@Dao
interface MusicDao {
    @Query("SELECT * FROM music")
    fun getAllMusic(): MutableList<MusicBean>

    @Delete
    suspend fun deleteMusic(MusicBean: MusicBean)

    @Update
    fun updateMusic(MusicBean: MusicBean)

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun insert(MusicBean: MusicBean)
}
